




/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : AD_tblSetupSequences.cs         
 * Created by           : Auto - 04/23/2014 15:03:44                     
 * Last modify          : Auto - 04/23/2014 15:03:44                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class AD_tblSetupSequences : BaseEntity
	{
		public AD_tblSetupSequences()
		{
			this.MaxLenght = 0;
			this.Step = 0;
			this.LastNumber = 0;
		}

	    #region Properties

		private string _SequenceID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(10)]
        public string SequenceID 
		{ 
			get
			{
                return _SequenceID;
			}
			set 
			{ 
                _SequenceID = value;
			} 
		}

		private string _SequenceName;
        [MaxLength(50)]
        public string SequenceName 
		{ 
			get
			{
                return _SequenceName;
			}
			set 
			{ 
                _SequenceName = value;
			} 
		}

		private string _SequenceName2;
        [MaxLength(50)]
        public string SequenceName2 
		{ 
			get
			{
                return _SequenceName2;
			}
			set 
			{ 
                _SequenceName2 = value;
			} 
		}

		private short _MaxLenght;
		[Required]
        public short MaxLenght 
		{ 
			get
			{
                return _MaxLenght;
			}
			set 
			{ 
                _MaxLenght = value;
			} 
		}

		private string _FixedString;
        [MaxLength(10)]
        public string FixedString 
		{ 
			get
			{
                return _FixedString;
			}
			set 
			{ 
                _FixedString = value;
			} 
		}

		private bool _Prefix;
        public bool Prefix 
		{ 
			get
			{
                return _Prefix;
			}
			set 
			{ 
                _Prefix = value;
			} 
		}

		private string _Hyphen;
        [MaxLength(1)]
        public string Hyphen 
		{ 
			get
			{
                return _Hyphen;
			}
			set 
			{ 
                _Hyphen = value;
			} 
		}

		private bool _IncludeDate;
        public bool IncludeDate 
		{ 
			get
			{
                return _IncludeDate;
			}
			set 
			{ 
                _IncludeDate = value;
			} 
		}

		private string _FormatType;
        [MaxLength(1)]
        public string FormatType 
		{ 
			get
			{
                return _FormatType;
			}
			set 
			{ 
                _FormatType = value;
			} 
		}

		private short _Step;
		[Required]
        public short Step 
		{ 
			get
			{
                return _Step;
			}
			set 
			{ 
                _Step = value;
			} 
		}

		private int _LastNumber;
		[Required]
        public int LastNumber 
		{ 
			get
			{
                return _LastNumber;
			}
			set 
			{ 
                _LastNumber = value;
			} 
		}

		private bool _AutoReset;
        public bool AutoReset 
		{ 
			get
			{
                return _AutoReset;
			}
			set 
			{ 
                _AutoReset = value;
			} 
		}

		private string _IntervalType;
        [MaxLength(1)]
        public string IntervalType 
		{ 
			get
			{
                return _IntervalType;
			}
			set 
			{ 
                _IntervalType = value;
			} 
		}

		private string _LastInterval;
        [MaxLength(10)]
        public string LastInterval 
		{ 
			get
			{
                return _LastInterval;
			}
			set 
			{ 
                _LastInterval = value;
			} 
		}

		private bool _Stop;
        public bool Stop 
		{ 
			get
			{
                return _Stop;
			}
			set 
			{ 
                _Stop = value;
			} 
		}

		private bool _RowSystem;
        public bool RowSystem 
		{ 
			get
			{
                return _RowSystem;
			}
			set 
			{ 
                _RowSystem = value;
			} 
		}

        #endregion
	}
}
